import 'package:flutter/material.dart';

class AppTheme {
  // 通用样式
  static const double smallFontSize = 14;
  static const double normalFontSize = 18;
  static const double largeFontSize = 22;

  static final Color normalTextColors = Colors.black;
  static final Color darkTextColors = Colors.yellow;

  // 普通主题
  static ThemeData normalTheme = ThemeData(
    primarySwatch: Colors.blue,
    canvasColor: Colors.grey,
    textTheme: TextTheme(
      headline1: TextStyle(fontSize: smallFontSize, color: normalTextColors),
      headline2: TextStyle(fontSize: normalFontSize, color: normalTextColors),
      headline3: TextStyle(fontSize: largeFontSize, color: normalTextColors),
    )
  );

  // 暗黑主题
  static ThemeData darkTheme = ThemeData(
    primarySwatch: Colors.blueGrey,
    canvasColor: Colors.white70,
    textTheme: TextTheme(
      headline1: TextStyle(fontSize: smallFontSize, color: normalTextColors),
      headline2: TextStyle(fontSize: normalFontSize, color: normalTextColors),
      headline3: TextStyle(fontSize: largeFontSize, color: normalTextColors),
    )
  );
}